package models;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import play.db.jpa.Model;

@Entity
public class BusinessIndicator extends Model{
    
    public String name;
    
    @ManyToOne(optional=false)
    @JoinColumn(nullable = false, name = "businessid", referencedColumnName = "id")
    public Business business;
    
    public String description;
    
    public String remark;
    
    @ManyToOne(optional=false)
    @JoinColumn(nullable = false, name = "authorid", referencedColumnName = "id")
    public User author;
    
    public Date updateDate;
    
    
    

}
